package com.ruoyi.business.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ruoyi.business.User;
import com.ruoyi.business.qo.UserQO;
import com.ruoyi.business.vo.UserListVO;
import org.apache.ibatis.annotations.Param;

public interface UserMapper  extends BaseMapper<User> {
    int deleteByPrimaryKey(Long id);

    int insertSelective(User record);

    User selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(User record);

    int updateByPrimaryKey(User record);

    IPage<UserListVO> queryPage(@Param("page") Page page, @Param("userQO") UserQO userQO);

    User selectByOpenId(String openid);

    int updateSelectiveByOpenId(User user);
}